import request from '@/utils/request'
export const getroles = (params) => request.get('/sys/role', { params })
export const addRole = (data) => request.post('/sys/role', data)
export const delrole = (id) => request.delete(`/sys/role/${id}`)
export const getrolsDetail = (id) => request.get(`/sys/role/${id}`)
export const updateroleDetail = (data) => request.put(`/sys/role/${data.id}`, data)
export const assignPrem = (data) => request.put('/sys/role/assignPrem', data)
